﻿namespace JY.Wpf.Core.Events
{
    /// <summary>
    /// 登录状态事件模型
    /// </summary>
    public class LoginStatusEvent
    {
        /// <summary>
        /// 构造器
        /// </summary>
        /// <param name="isSuccess">状态</param>
        /// <param name="msg">消息</param>
        public LoginStatusEvent(bool isSuccess,string msg=null)
        {
            this.IsSuccess = isSuccess;
            this.Message = msg;
        }

        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 是否登录成功
        /// </summary>
        public bool IsSuccess { get;set; }
    }
}
